/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.stone.back.user.dao;

import com.stone.back.user.entity.BfCoupon;
import com.stone.base.dao.BaseDao;
import java.util.List;
import org.springframework.stereotype.Repository;

/**
 * 优惠券
 * @author apple
 */
@Repository
public class CouponDao extends BaseDao implements ICouponDao {

    @Override
    public List<BfCoupon> queryByUserid(Integer userid) {
        String hql = "from BfCoupon where userid = ?";
        return this.hibernateTemplate.find(hql, userid);
    }
    
}
